package com.itqf.ipmsys.controller;


import com.itqf.ipmsys.service.UserService;
import com.itqf.ipmsys.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author corn
 * @since 2021-09-22
 */
@CrossOrigin("*")
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping("increase")
    private R increace(@RequestParam int month){
        Map<String, List> map =  userService.findIncrease(month);
        return R.ok().setData("userincrease", map);
    }
}

